<?php
/**
 * oscshop2 B2C电子商务系统
 *
 * ==========================================================================
 * @link      http://www.oscshop.cn/
 * @copyright Copyright (c) 2015-2017 oscshop.cn.
 * @license   http://www.oscshop.cn/license.html License
 * ==========================================================================
 *
 * @author
 *
 */

namespace osc\mobile\controller;

class WxBrowers extends MobileBase
{

    /**
     * 安卓版下载-----验证微信浏览器
     * @return mixed
     */
	public function is_wxBrowers(){
        $ua = $_SERVER['HTTP_USER_AGENT'];
        if (strpos($ua, 'MicroMessenger') == false && strpos($ua, 'Windows Phone') == false) {
            $this->redirect('/jrg.apk');
        } else {
            return $this->fetch();
        }
    }

}
